import request from '@/utils/request'

// 调取权限列表数据接口
export const getPermissionListAPI = () => {
  return request.get('/sys/permission')
}
// 获取权限点详情接口
export const getPermissionAPI = (id) => {
  return request.get(`/sys/permission/${id}`)
}
// 新增权限点接口
export const addPermissionListAPI = (data) => {
  return request.post('/sys/permission', data)
}
// 删除权限点接口
export const delPermissionListAPI = (id) => {
  return request.delete(`/sys/permission/${id}`)
}
// 修改权限点
export const putPermissionListAPI = (data) => {
  return request.put(`/sys/permission/${data.id}`, data)
}
